package snowforce.datatype;

import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
public class GraphEdge
{
	private String	id	= "";
	private int		point1;
	private int		point2;
	private int		length;
	private String	oneway;
	private int		Speed;

	public GraphEdge()
	{

	}

	public GraphEdge(String id, int point1, int point2, int length, String oneway, int speed)
	{
		super();
		this.id = id;
		this.point1 = point1;
		this.point2 = point2;
		this.length = length;
		this.oneway = oneway;
		Speed = speed;
	}

	public String getId()
	{
		return id;
	}

	public void setId(String id)
	{
		this.id = id;
	}

	public int getPoint1()
	{
		return point1;
	}

	public void setPoint1(int point1)
	{
		this.point1 = point1;
	}

	public int getPoint2()
	{
		return point2;
	}

	public void setPoint2(int point2)
	{
		this.point2 = point2;
	}

	public int getLength()
	{
		return length;
	}

	public void setLength(int length)
	{
		this.length = length;
	}

	public String getOneway()
	{
		return oneway;
	}

	public void setOneway(String oneway)
	{
		this.oneway = oneway;
	}

	public int getSpeed()
	{
		return Speed;
	}

	public void setSpeed(int speed)
	{
		Speed = speed;
	}

	@Override
	public String toString()
	{
		StringBuilder builder = new StringBuilder();
		builder.append("GraphEdge [id=");
		builder.append(id);
		builder.append(", point1=");
		builder.append(point1);
		builder.append(", point2=");
		builder.append(point2);
		builder.append(", length=");
		builder.append(length);
		builder.append(", oneway=");
		builder.append(oneway);
		builder.append(", Speed=");
		builder.append(Speed);
		builder.append("]");
		return builder.toString();
	}

}